/**
 * Created by codeczx on 2018/3/19.
 */
public class Consumer implements Runnable{

    QueueBuffer buffer;

    Consumer(QueueBuffer buffer){
        this.buffer = buffer;
    }

    @Override
    public void run() {
        while(true) {
            buffer.get();
        }
    }
}
